package com.weishuang.model.account.facade;

import com.weishuang.model.account.dto.RoleDTO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

@FeignClient(name = "weishuang-account", contextId = "role", path = "/account/role")
public interface RoleFacade {

    @PostMapping("/getRoles")
    List<RoleDTO> getRoles(@RequestParam String userId);

}
